package cn.iocoder.yudao.framework.operatelog.api.convert.permission;

import cn.iocoder.yudao.framework.operatelog.api.controller.vo.ApiPermissionCreateReqVO;
import cn.iocoder.yudao.framework.operatelog.api.controller.vo.ApiPermissionExcelVO;
import cn.iocoder.yudao.framework.operatelog.api.controller.vo.ApiPermissionRespVO;
import cn.iocoder.yudao.framework.operatelog.api.controller.vo.ApiPermissionUpdateReqVO;
import cn.iocoder.yudao.framework.operatelog.api.dal.dataobject.permission.ApiPermissionDO;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import org.apache.ibatis.annotations.Mapper;
import org.mapstruct.factory.Mappers;


import java.util.List;

/**
 *  Convert
 *
 * @author 芋艿
 */
@Mapper
public interface ApiPermissionConvert {

    ApiPermissionConvert INSTANCE = Mappers.getMapper(ApiPermissionConvert.class);

    ApiPermissionDO convert(ApiPermissionCreateReqVO bean);

    ApiPermissionDO convert(ApiPermissionUpdateReqVO bean);

    ApiPermissionRespVO convert(ApiPermissionDO bean);

    List<ApiPermissionRespVO> convertList(List<ApiPermissionDO> list);

    PageResult<ApiPermissionRespVO> convertPage(PageResult<ApiPermissionDO> page);

    List<ApiPermissionExcelVO> convertList02(List<ApiPermissionDO> list);

}
